FROM  openjdk:11.0.10-jre
MAINTAINER yanbing@163.com
ENV TZ=Asia/Shanghai

RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

WORKDIR /

EXPOSE 8080

ADD ./target/springboot-prometheus-example*.jar ./springboot-prometheus-example.jar

CMD sleep 60;java -Djava.security.egd=file:/dev/./urandom -jar springboot-prometheus-example.jar